// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import axios from "axios";
import './plugins/element'
import router from './routers/index'
import './assets/common.css'
import App from './App'

Vue.prototype.$http= axios;  //设为全局对象
axios.defaults.baseURL= 'http://127.0.0.1:4000';  //前端未配置代理时需要后端解决跨域问题

Vue.config.productionTip = false


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
